﻿@model Project.WebUI.Models.WithdrawModel
@using Framework.Util.Helpers
@using Project.Resource.User
@{
    ViewBag.Title = "Gamabetplus - WithDraw";
}
@{
    var culture = "";
    if (Session["Culture"] != null && Session["Culture"].ToString().Equals("vi-VN"))
    {
        culture = "vi-VN";
    }
    var status = "0";
    if (ViewBag.success == "1")
    {
        status = "1";
    }
}

<section class="container clearfix">
    <div class="head_table">
        <div class="head_title_table">
            Profile Detail            
        </div>
    </div>
    <div id="content" style="margin-top: 10px;">
        <table width="100%">
            <tr>
                <td width="237" valign="top">
                    <div class="left_content">
                        @Html.Partial("_MenuProfile")
                    </div>
                </td>
                <td valign="top">
                    <div class="right_content">    
                        <div id="indexView" class="table">
                            <div class="head_table">
                                <div class="head_title_table">
                                    WithDraw           
                                </div>
                            </div>  
                            <div class="clearAll"></div>
                            @using (Html.BeginForm("WithDraw", "User", FormMethod.Post, new { id = "formWithDraw" }))
                            {
                                @Html.AntiForgeryToken()
                                <div class="content_table">                                    
                                    <table cellspacing="0" cellpadding="0" border="0" width="100%">
                                        <tr class="row1">
                                            <td class="th_left" style="width: 114px;">@DepositResource.lblAmount
                                            </td>
                                            <td class="th_left">
                                                @Html.TextBoxFor(m => m.lr_amnt, new {@class = "cf_input"})
                                                @Html.ValidationMessageFor(m => m.lr_amnt)
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                                <div class="footer_table">
                                    <div class="item_per_page" style="margin: 0 !important;">
                                        <div onclick="return $('#formWithDraw').submit();" class="btSubmit"></div>
                                    </div>
                                </div>
                            }
                        </div>                                             
                        <div class="clearAll"></div>                                   
                        @Html.Partial("_HeaderHistory")
                        <script type="text/javascript">
                            var root = '@Request.ApplicationPath';
                            $(document).ready(function () {
                                LoadAjax(root, 'AjaxWithDraw', 1);
                                $('.item').removeClass('active');
                                $('#withdraw_content').addClass('active');
                            });
                        </script>                                                                       
                        <div class="clearAll"></div>                       
                    </div>
                </td>
            </tr>
        </table>
    </div>

    <div class="clear padding40"></div>

</section>
<div id="withdraw_success" title="Request successfully" style="display: none;">
    @WithDrawResource.Success
</div>

<script type="text/javascript">
    if ("@status" == "1") {
        var id = "withdraw_success";
        $("#lr_amnt").val = "";
        popupSite(id);        
    }

    function resetFrom(sender) {
        
    }
</script>
